package freshmanspecial.mredrock.com.welcomefreshman.Presenter;

import android.content.Intent;

import freshmanspecial.mredrock.com.welcomefreshman.View.DataView;
import freshmanspecial.mredrock.com.welcomefreshman.View.IDataView;
import freshmanspecial.mredrock.com.welcomefreshman.View.MainView;

/**
 * Created by Administrator on 2017/8/3 0003.
 */

public class DataPresenter implements IDataPresenter{
    private IDataView dataView;
    public DataPresenter(DataView dataView){
        this.dataView = dataView;
    }
    @Override
    public void backToMainView() {
        Intent intent = new Intent(dataView.getActivity(), MainView.class);
        dataView.getActivity().startActivity(intent);
        dataView.getActivity().finish();
    }
}
